package com.xit.hitmouse.utils;

import android.content.Context;

/**
 * @author 厦工 友敏612
 * @Date 2023/11/22
 */
public class  ConvertUtils {
    public  static  int dpConvertPix(Context mContext, int dp){
       float scale = dp*mContext.getResources().getDisplayMetrics().density + 0.5f;
       return (int)scale;
    }
}
